package com.syh.jn.scm.domain.supplier.repository.finance.archive;

import cn.redscarf.commons.wrapper.Wrapper;
import com.syh.core.ddd.infrastructure.repository.ReadRepo;
import com.syh.jn.scm.domain.supplier.entity.finance.archive.Archive;

import java.util.List;

public interface ArchiveReadRepository extends ReadRepo<Archive, Long> {

    List<?> findSettlementsByArchiveId(Long archiveId);

    List<?> findStockByArchiveId(Long archiveId);

    List<?> findSettlements(Wrapper wrapper);

    List<?> findStock(Wrapper wrapper);

    List<?> findSettlementsPage(Wrapper wrapper, Integer startRow, Integer count);

    List<?> findStockPage(Wrapper wrapper, Integer startRow, Integer count);

    Integer countSettlements(Wrapper we);

    Integer countStock(Wrapper we);
}
